package com.syedu.cels.util;

import java.util.Scanner;

/**
 * 输入工具类
 */
public class InputUtil {
    //全局变量
    static Scanner scanner = new Scanner(System.in);

    public static int getInt(String message) {
        System.out.print(message);
        return scanner.nextInt();
    }

    public static double getDouble(String message) {
        System.out.print(message);
        return scanner.nextDouble();
    }

    public static String getStr(String message) {
        System.out.print(message);
        return scanner.next();
    }
}